package kuzmenkov.oip.service.impl;

/**
 * This class represents a parameter of an image processing module. 
 * User: Michael Kuzmenkov
 * Date: 01.04.2009
 * Time: 19:43:56
 */
public class ParameterItem {
    /**
     * A name of a parameter
     */
    private String name ;
    /**
     * A description of a patameter
     */
    private String description;
    /**
     * Indicates what parameter is output
     */
    private boolean isResult;
    /**
     * Takes a default value of a parameter
     */
    private String defaultValue;

    public ParameterItem (String name, String description, String defaultValue, boolean isResult){
        this. name = name;
        this.description = description;
        this.defaultValue = defaultValue==null||defaultValue.isEmpty()?null:defaultValue;
        this.isResult = isResult;
    }

    /**
     * @see kuzmenkov.oip.service.impl.ParameterItem#name
     * @return
     */
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    /**
     *
     * @see kuzmenkov.oip.service.impl.ParameterItem#isResult
     */
    public boolean getIsResult() {
        return isResult;
    }

    public void setIsResult(boolean isResult) {
        this.isResult = isResult;
    }

    public String getDefaultValue() {
        return this.defaultValue = defaultValue==null||defaultValue.isEmpty()?null:defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }
}
